#include <stdio.h>
#include <time.h>

int sleep(unsigned ms)
{
    clock_t s = clock(), e;

    do {
        e = clock();
        if (e == (clock_t)-1) {
            return 0;
        }
    } while (1000.0 * (e -s) / CLOCKS_PER_SEC < ms);
    return 1;

}


int main(void)
{

    char chs[225] = {0};
    char chs2[2];
    setvbuf(stdout, chs, _IOFBF, 2);
    //setvbuf(stdin, chs2, _IONBF, sizeof(chs2));



    char* str="what's your name?";
    while (*str) {
        putchar(*str);
        sleep(500);
        ++str;
    }

    putchar('\n');
    return 0;

    char ch;
    while ((ch = getchar()) != EOF) {
        putchar(ch);
    }
}
